<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h2>number1:{{number1}}</h2>
      <h2>number2:{{number2}}</h2>
      <h2>number2:{{name}}</h2>
    </div>

    <h1 id="title"></h1>
    <!-- <script>
      let title = "hello jack";
      document.getElementById("title").innerHTML = title;
    </script> -->
    <script type="module">
      import { createApp, ref } from "./vue.esm-browser.js";
      const app = createApp({
        setup() {
          // 数据=>视图（界面html）
          const number2 = ref(100);
          return {
            number2,
            number1: ref(30),
            name: ref("jack"),
          };
        },
      });
      app.mount("#app"); //挂载
    </script>
  </body>
</html>
